﻿#pragma once
#include "Screen.h"
#include "Turtle.h"
#include "Brick.h"
#include "Bullet.h"
#include "Info.h"

class Gomba:public MObject
{
protected:
	shared_ptr<Sprite> _spriteMove;
	shared_ptr<Sprite> _spritePushed; //bị đè
	shared_ptr<Sprite> _spriteThrowing;


	float _dyingTime;

	float _timeScore;

	float _ty;

	CInfo _info;
public:
	Gomba(void);
	Gomba(float x, float y, int Width, int Height, float vx, float vy, int deltaTime, LPD3DXSPRITE spriteHandler, LPDIRECT3DTEXTURE9 image);
	Gomba(float x, float y, float vx, float vy, int deltaTime,int resourceName,CResourceManager *rm);
	~Gomba();
	void Move();
	void Render();
	void setVelocity(Vector v,shared_ptr<MObject> Object);

	void actAfterCollided(int Direction, shared_ptr<MObject> Object);
	void setStatus(int Status);

public:
	// STATUS CONSTANT
	static const int STATUS_ALIVE = 0;
	static const int STATUS_DYING = -3;
	static const int STATUS_THROWING = -2;
	static const int STATUS_DEAD = -1;
};